class Clocker extends React.Component{
    constructor(props){
        super(props);
        this.state={date:11};
    }
    setTime(){
        setInterval(function () {
            this.setState((old)=>({
                date:this.getTime().toString()
            }))
        }.bind(this),1000)
    };
    getTime(){
        return new Date();
    }
    handleFun=()=>{
        console.log(this.state.date);
    }


    componentDidMount(){
        this.setTime();
    }
    render(){
        return (
            <div>
                <p onClick={this.handleFun}>点我啊 快来点我啊</p>
                现在时间是{this.state.date}
                <List/>
            </div>
        )
    }

}
ReactDOM.render(<FilterableProductTable /> ,document.getElementById("root"))